package fun.qu_an.velocity.whitelist.translate;

import fun.qu_an.lib.minecraft.velocity.api.language.LanguageManager;
import fun.qu_an.velocity.whitelist.VelocityWhitelist;
import net.kyori.adventure.key.Key;
import net.kyori.adventure.text.Component;

import static fun.qu_an.velocity.whitelist.VelocityWhitelist.DATA_DIRECTORY;

public class Translates {
	/**
	 * 添加使用权
	 */
	public static final String PERMISSION_ADD_USE = "qu_an.whitelist.permission.add.use";
	/**
	 * 添加管理权
	 */
	public static final String PERMISSION_ADD_ADMIN = "qu_an.whitelist.permission.add.admin";
	/**
	 * 未知的权限名
	 */
	public static final String PERMISSION_ADD_UNKNOWN = "qu_an.whitelist.permission.add.unknown";
	/**
	 * 移除权限
	 */
	public static final String PERMISSION_REMOVE = "qu_an.whitelist.permission.remove";
	public static final String PERMISSION_REMOVE_PLAYER_NOT_EXIST = "qu_an.whitelist.permission.remove.player_not_exist";
	/**
	 * 白名单添加成功
	 */
	public static final String WHITELIST_ADD_SUCCEED = "qu_an.whitelist.add.succeed";
	/**
	 * 玩家已在白名单中
	 */
	public static final String WHITELIST_ADD_ALREADY_EXIST = "qu_an.whitelist.add.already_exist";
	/**
	 * 白名单添加失败
	 */
	public static final String WHITELIST_ADD_FAILED = "qu_an.whitelist.add.failed";
	/**
	 * 白名单移除成功
	 */
	public static final String WHITELIST_REMOVE_SUCCEED = "qu_an.whitelist.remove.succeed";
	/**
	 * 玩家不在白名单中
	 */
	public static final String WHITELIST_REMOVE_NOT_FOUND = "qu_an.whitelist.remove.not_found";
	/**
	 * 白名单移除失败
	 */
	public static final String WHITELIST_REMOVE_FAILED = "qu_an.whitelist.remove.failed";
	/**
	 * 启用白名单
	 */
	public static final Component WHITELIST_ON = Component.translatable("qu_an.whitelist.on");
	/**
	 * 停用白名单
	 */
	public static final Component WHITELIST_OFF = Component.translatable("qu_an.whitelist.off");
	/**
	 * 白名单重载成功
	 */
	public static final Component WHITELIST_RELOAD_SUCCEED = Component.translatable("qu_an.whitelist.reload.succeed");
	/**
	 * 白名单重载失败
	 */
	public static final String WHITELIST_RELOAD_FAILED = "qu_an.whitelist.reload.failed";
	/**
	 * 白名单保存失败
	 */
	public static final String WHITELIST_SAVE_FAILED = "qu_an.whitelist.save.failed";
	/**
	 * 玩家名格式错误
	 */
	public static final String ILLEGAL_PLAYER_NAME = "qu_an.whitelist.illegal_player_name";
	public static final Component KICK_NOT_IN_WHITELIST = Component.translatable("qu_an.whitelist.kick.not_in_whitelist");
	public static final LanguageManager LANGUAGE_LOADER = LanguageManager.create(
		VelocityWhitelist.getInstance(),
		Key.key("qu_an", "whitelist"),
		DATA_DIRECTORY.resolve("langs"),
		"langs"
	);
}
